package com.example.my_bookkeeping.data.user;

public class BookKeep{
    // 定义数据储存方式
    private final long _id;
    private double amount;
    private String category;
    private String remark;
    private String time;
    private boolean isIncome;

    // 包级别的构造方法，由User类调用
    BookKeep(long id, String time, double amount, String category, String remark, boolean isIncome) {
        this._id = id;
        this.time = time;
        this.amount = amount;
        this.category = category;
        this.remark = remark;
        this.isIncome = isIncome;
    }

    public long getId() {
        return _id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean getIsIncome() {
        return isIncome;
    }

    public void setIsIncome(boolean income) {
        this.isIncome = income;
    }
}